//package kotlinx.coroutines.script
//
//import sample.ui.Properties
//import auto.netease.model.Plan
//import auto.netease.model.PlanDot
//
//// 墓园
//class MapPathsV3(map: Block) {
//    val mapPts = map.height / 1000f // 把大地图高度分成1000份
//    // private var list: MutableMap<String, Plan> = mutableMapOf() // 脚本自带数据
//    private var userList: MutableMap<String, Plan> = mutableMapOf() // 用户数据
//    init {
//        invalidate()
//    }
//    fun invalidate() {
//        userList = mutableMapOf<String, Plan>().also { map ->
//            Plan.userDataList.forEach {
//                val key = "${it.area}_${it.name}"
//                map[key] = it.copy(mapPts = mapPts)
//            }
//        }
//    }
//
////    fun sweepingPlaceCenterForSingle(id: String): Block {
////        return list[id]?.center ?: userList[id]?.center!!
////    }
//    fun sweepingPlaceDotList(id: String): List<PlanDot> {
//        val reverse = Properties.sweepingReversePath
////        val inner: List<PlanDot>? = if (reverse) list[id]?.usingReverseList else list[id]?.usingList
////        if (inner != null) return inner
//
//        val userCache: List<PlanDot>? = if (reverse) userList[id]?.usingReverseList else userList[id]?.usingList
//        if (userCache != null) return userCache
//
//        val user = Plan.userDataList.find { "${it.area}_${it.name}" == id }
//            ?: return listOf()   // analysisEvent("error user paths $id")
//        val new = user.copy(mapPts = mapPts)
//        userList[id] = new
//        return if (reverse) new.usingReverseList!! else new.usingList!!
//    }
//    fun sweepingPlace(id: String): Plan? {
////        return list[id] ?: userList[id]
//        return userList[id]
//    }
//
//
//
//
//
//
//
//}
//
//
////this["阿什沃德墓园_安全区传送站_埋骨堂"] = listOf(
////(175) to (-170),
////(90) to (-260),
////(90) to (-350),
////(200) to (-340),
////(460) to (-350),
////(350) to (-275),
////(280) to (-245),
////)
//
////            this["拜尔芬岛_南部湿地传送站_海盗窝点"] = listOf(
////                (55) to (-250),
////                (140) to (-350),
////                (170) to (-310),
////                (75) to (-340),
////            )
//
////            this["凌风要塞_淹城传送站_淹城"] = listOf(
////                (705) to (-75),
////                (720) to (140),
////                (500) to (85),
////                (305) to (135),
////                (155) to (5),
////                (375) to (-75),
////                (545) to (-175),
////            )